# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=py3-rply
pkgver=0.7.7
pkgrel=1
pkgdesc="Python parser generator, that also works with RPython"
url="https://github.com/alex/rply"
arch="noarch"
license="BSD-3-Clause-Clear"
depends="py3-appdirs"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
source="$pkgname-$pkgver.tar.gz::https://github.com/alex/rply/archive/v$pkgver.tar.gz"
builddir="$srcdir/rply-$pkgver"

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="c01166b7df067a6a55d1b43caa7b5a349045e838899daf82e2ba70a2c2525fd68e95f11e5319a1fe36936e696352a37bdc13f132f739cd52759a9a9c91e317ba  py3-rply-0.7.7.tar.gz"
